package com.fbs.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fbs.entity.Work;
import com.fbs.mapper.WorkMapper;
import com.fbs.service.WorkService;
import com.fbs.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 13745
* @description 针对表【work】的数据库操作Service实现
* @createDate 2023-03-22 16:53:15
*/
@Service
public class WorkServiceImpl extends ServiceImpl<WorkMapper, Work>
implements WorkService {
@Autowired
private WorkMapper workMapper;
    @Override
    public Result findByall() {
        List<Work> works = workMapper.selectList(null);
        return new Result(2000,"查询成功",works);
    }
}
